//
//  RegisterView.m
//  Comma
//
//  Created by dlios on 15-1-14.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "RegisterView.h"

@implementation RegisterView

/*
 // Only override drawRect: if you perform custom drawing.
 // An empty implementation adversely affects performance during animation.
 - (void)drawRect:(CGRect)rect {
 // Drawing code
 }
 */

- (void)changeControlType
{
    // 设置视图的大小
    self.frame = CGRectMake(0, 312, SCREEN_WIDTH, SCREEN_HEIGHT - 312);
    // 设置眼睛的frame和背景图片
    self.centerButton.frame = CGRectMake(SCREEN_WIDTH - 41 + SCREEN_WIDTH, 100, 25, 16);
    [self.centerButton setBackgroundImage:[UIImage imageNamed:@"app2.0png-04.png"] forState:UIControlStateNormal];
    
    // 设置发送验证码按钮的frame
    self.downButton.frame = CGRectMake(SCREEN_WIDTH - 105 + SCREEN_WIDTH, 132, 83, 44);
    self.downButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentRight;
    // 修改输入手机号Field的长度
    self.upTextField.frame = CGRectMake(16 + SCREEN_WIDTH, 44, SCREEN_WIDTH - 110, 44);
    
    // 修改输入密码Field的长度
    self.centerTextField.frame = CGRectMake(16 + SCREEN_WIDTH, 88, SCREEN_WIDTH - 110, 44);
    self.centerTextField.secureTextEntry = YES;
    
    // 修改输入验证码Field的长度
    self.downTextField.frame = CGRectMake(16 + SCREEN_WIDTH, 132, SCREEN_WIDTH - 110, 44);
    
    [self createLine];
}

- (void)createLine
{
    self.upLine = [[UIView alloc] initWithFrame:CGRectMake(SCREEN_WIDTH, 88, SCREEN_WIDTH, 0.5)];
    _upLine.backgroundColor = LINEERGRAY;
    [self addSubview:_upLine];
    
    self.downLine = [[UIView alloc] initWithFrame:CGRectMake(SCREEN_WIDTH, 132, SCREEN_WIDTH, 0.5)];
    _downLine.backgroundColor = LINEERGRAY;
    [self addSubview:_downLine];
}


@end
